package com.king.ribbon;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.client.RestTemplate;

/**
 * Created by king on 2018/03/07.
 */
@Service
public class RibbonService {

    private final
    RestTemplate restTemplate;

    @Autowired
    public RibbonService(RestTemplate restTemplate) {
        this.restTemplate = restTemplate;
    }



    public String hiRibbon(String name){

        return restTemplate.getForObject("http://SERVICE-HI/info?name="
            +name,String.class);
}

}
